<?php

// $Id$

require_once($WSC->get_site_inc_dir().'modules/user_auth_basic/classes/user_bfpwd_dbc.class.php');


class Admin_User_DBC extends User_BFPwd_DBC {
	function __construct() {
		$this->set_db_table_prefix('admin_');
	}


	public static function get_sql_for_grid() {
		$sql = "select id, username, disabled from admin_users order by username asc";

		return $sql;
	}


	public static function get_sql_count_for_grid() {
		$sql = "select count(id) as total_rows from admin_users";

		return $sql;
	}


	public static function disable(DB_Connection $dbc, $id, $prefix = '') {
		parent::disable($dbc, $id, 'admin_');
	}


	public static function enable(DB_Connection $dbc, $id, $prefix = '') {
		parent::enable($dbc, $id, 'admin_');
	}


	public static function username_exists(DB_Connection $dbc, $username, $prefix = '') {
		parent::username_exists($dbc, $username, 'admin_');
	}


	public static function username_exists_update(DB_Connection $dbc, $username, $prefix = '', $own_id) {
		parent::username_exists_update($dbc, $username, 'admin_', $own_id);
	}


	public static function delete(DB_Connection $dbc, $id, $prefix = '') {
		parent::delete($dbc, $id, 'admin_');
	}
}